import { createApp } from 'vue'
import './style/style.css'
// import './style/transition.scss'
import App from './App.vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import './permission'

import store from './store'

import router from './router'

import Particles from 'particles.vue3' //进度条

import http from './utils/request' //请求

import i18n from './i18n/i18n'

import websocket from './websocket/index'

const app = createApp(App)
// 统一注册所有 element-ui 图标
import { loadIcon } from './utils/icon'
loadIcon(app)

app
  .use(Particles)
  .use(ElementPlus)
  .use(router)
  .use(store)
  .use(http)
  .use(i18n)
  .use(websocket)
  .mount('#app')
